Add a (#ifdef 0'ed) test provoking a segfault in TIFFReadDirectory().
authorMatthias Clasen <matthiasc@src.gnome.org>
Tue, 12 Feb 2002 23:28:05 +0000 (23:28 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 12 Feb 2002 23:28:05 +0000 (23:28 +0000)
commita9a06ee44e440522eaa56d4f4f300ffe91a5083d
treeab615c03d69aa578d07bc20dbf64c910018309fb
parent67051d64f4f335e8a578602882e215a895614ea5
Add a (#ifdef 0'ed) test provoking a segfault in TIFFReadDirectory().

* test-images.h (tiff1_test_3), test-loaders.c (main): Add a
(#ifdef 0'ed) test provoking a segfault in TIFFReadDirectory().

* io-ico.c (DecodeHeader): Check that pixbuf could be allocated.

* test-images.h (ico_test_2), test-loaders.c (main): Test the
previous change.

* io-wbmp.c (gdk_pixbuf__wbmp_image_load_increment): Don't write
beyond the end of buffer if width % 8 != 0.

* io-tga.c (try_preload): Enforce that ctx->hdr->type is one of
the supported types, otherwise parse_data_for_row () will not make
any progress, leading to an infinite loop.
gdk-pixbuf/ChangeLog
gdk-pixbuf/gdk-pixbuf-loader.c
gdk-pixbuf/io-ico.c
gdk-pixbuf/io-tga.c
gdk-pixbuf/io-wbmp.c
gdk-pixbuf/test-images.h
gdk-pixbuf/test-loaders.c